<article class="module width_full">
    <header><h3>{#actions#}</h3></header>
    <table width="100%" cellpadding="3" cellspacing="1">
            <tbody>
                    <tr>
							<th align="center" class="header"><a href="index.php?mod=myprofile&userID={$userID}">{#edit#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&userID={$userID}">{#profile#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=mails&userID={$userID}">{#mails#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=quests&userID={$userID}">{#quest#}</a></th>
                    </tr>
            </tbody>
    </table>
</article>
{foreach from=$value item=item}
<form method="post">
<article class="module width_full">
    <header><h3>{#show#}</h3></header>
    <div class="module_content">
        <fieldset>
            <label>{#username#}</label>
            <div style="clear:left; padding:10px;">{$item.name}</div>
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label>{#mail#}</label>
            <div style="clear:left; padding:10px;">{$item.email}</div>
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <label>{#credits#}</label>
            <div style="clear:left; padding:10px;">{$item.credits}</div>
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label>{#access_level#}</label>
			<div style="clear:left; padding:10px;">{$item.access}</div>
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <div style="float:left; width:48%;">
            <label>{#activated#}</label><br /><br />
                <div style="clear:left; padding:10px;">{if $item.activated == 1} {#isactivated#} {else} {#notactivated#} {/if}</div>
            </div>
            <div style="float:left; width:48%;">
            <label>{#lastadress#}</label>
            <div style="clear:left; padding:10px;">{$item.last_ip}</div>
            </div>
        </fieldset><div class="clear"></div>
    </div>
</article>
</form>
{/foreach}
<form method="post">
<article class="module width_full">
    <header><h3>{#characters#}</h3></header>
    <div class="module_content">
		{if !empty($character)}
		{foreach from=$character item=item}
        <fieldset>
            <label>{$item.race} | <a href="index.php?mod=character&charID={$item.id}">{$item.name}</a></label>
            <div style="clear:left; padding:10px;">{#level#} {$item.level} | {#class#} {$item.class}</div>
        </fieldset>
		{/foreach}
		{/if}
        <div class="clear"></div>
    </div>
</article>
</form>
<div class="modal" id="edited">
        <h3>{#edited#}</h3>
		<p>{#success_edited#}</p>
</div>